<template>
  <div class="main">
    <el-row :gutter="20">
      <el-col :span="10">
        <el-card class="box-card" shadoe="hover">
          <div slot="header" class="clearfix">
            <span>
              <img class="user" :src="userImg">
            </span>
            <p class="name">teachName</p>
          </div>
          <div class="textitem">
            <p>下午好!</p>
          </div>
        </el-card>
      </el-col>
      <el-col class="detial" :span="14">
      <CommonExcel></CommonExcel>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import CommonExcel from '@/components/commonExcel/index.vue'
export default {
    // 组件名称
    name: "homeView",
    data() {
        return {
            userImg: require("@/assets/logo.png"),
            value: new Date()
        };
    },
    components: { CommonExcel }
}
</script> 

<style scoped lang='less'>
.el-row {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;

  &:last-child {
    margin-bottom: 0;
  }
}

.el-col {
  border-radius: 4px;
}

.bg-purple-dark {
  background: #99a9bf;
}

.bg-purple {
  background: #d3dce6;
}

.bg-purple-light {
  background: #e5e9f2;
}

.grid-content {
  border-radius: 4px;
  min-height: 36px;
}

.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}

.clearfix {
  display: flex;
  justify-content: space-evenly;
  align-items: center;

  .user {
    border: #99a9bf 1px solid;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin-right: 20px;
  }

  .name {
    font-size: 30px;
  }
}

.textitem {
  text-align: center;
  font-size: 20px;
}

.detial {
  height: 100%;
}
</style>
